package com.googlecode.wannabet.domain;

import com.google.appengine.api.datastore.Entity;

public class Team {
	
	private Long teamID;
	
	private String name;
	
	public static Entity getTeamEntity(Long teamID, String name) {
		Entity entity = new Entity(Team.class.getSimpleName());
		entity.setProperty("teamID", teamID);
		entity.setProperty("name", name);
		
		return entity;
	}

	/**
	 * @return the teamID
	 */
	public Long getTeamID() {
		return teamID;
	}

	/**
	 * @param teamID the teamID to set
	 */
	public void setTeamID(Long teamID) {
		this.teamID = teamID;
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

}
